import { createApp } from 'vue'
//全局导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入路由
import router from './router'
//国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入地图
import TlbsMap from 'tlbs-map-vue';
import App from './App.vue'
//引入重置样式
import "@/styles/index.scss"
// import '@/styles/variable.scss'//引入的位置是这里
//引入仓库
import pinia from './store'
const app = createApp(App)
//使用图标库
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
createApp(App)

//使用elementpuls
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(router)
app.use(pinia)
app.use(TlbsMap)
app.mount('#app')